configure ospf import-policy

configure ospf import-policy [policy-map | none]

Description

Configures the import policy for OSPF.

Syntax Description

policy-map Specifies the policy.

Default

No policy.

Usage Guidelines

An import policy is used to modify route attributes while adding OSPF routes to the IP route table. This command provides the flexibility of using import policy to determine the routes to be added to or removed from the routing table. In order to prevent a route being added to the routing table, the policy file must contain a matching rule with action “deny”. If there is no matching rule for a particular route, or the keyword “deny” is missing in the rule, the default action is “permit”, which means that route will be installed into the routing table.

Use the none option to remove an import policy.

If a policy rule set the cost to be greater than 65535, OSPF limits the metric of any matching routes to be 65535.

Example

The following example applies the policy campuseast to OSPF routes:

configure ospf import-policy campuseast

History

This command was first available in ExtremeXOS 10.1.

Beginning in ExtremeXOS 15.7, this command allows Import Policy to be used by OSPFv2 to install routes selectively into the switch routing table.

Platform Availability

This command is available on platforms with Base license, or higher, as described in the Switch Engine v33.1.1 Licensing Guide document.